package com.bootx.officialAccount.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class BatchGetMaterial extends BaseResponse{

    @JsonProperty("total_count")
    private Integer totalCount;
    @JsonProperty("item_count")
    private Integer itemCount;
    @JsonProperty("item")
    private List<ItemBean> item;

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getItemCount() {
        return itemCount;
    }

    public void setItemCount(Integer itemCount) {
        this.itemCount = itemCount;
    }

    public List<ItemBean> getItem() {
        return item;
    }

    public void setItem(List<ItemBean> item) {
        this.item = item;
    }

    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class ItemBean {

        @JsonProperty("media_id")
        private String mediaId;
        private ContentBean content;
        @JsonProperty("update_time")
        private Long updateTime;

        private String name;

        private String url;


        public String getMediaId() {
            return mediaId;
        }

        public void setMediaId(String mediaId) {
            this.mediaId = mediaId;
        }

        public ContentBean getContent() {
            return content;
        }

        public void setContent(ContentBean content) {
            this.content = content;
        }

        public Long getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(Long updateTime) {
            this.updateTime = updateTime;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        @JsonIgnoreProperties(ignoreUnknown = true)
        public static class ContentBean {

            @JsonProperty("create_time")
            private Integer createTime;
            @JsonProperty("update_time")
            private Integer updateTime;
            @JsonProperty("news_item")
            private List<NewsItemBean> newsItem;

            public Integer getCreateTime() {
                return createTime;
            }

            public void setCreateTime(Integer createTime) {
                this.createTime = createTime;
            }

            public Integer getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(Integer updateTime) {
                this.updateTime = updateTime;
            }

            public List<NewsItemBean> getNewsItem() {
                return newsItem;
            }

            public void setNewsItem(List<NewsItemBean> newsItem) {
                this.newsItem = newsItem;
            }

            @JsonIgnoreProperties(ignoreUnknown = true)
            public static class NewsItemBean {

                @JsonProperty("title")
                private String title;
                @JsonProperty("author")
                private String author;
                @JsonProperty("digest")
                private String digest;
                @JsonProperty("content")
                private String content;
                @JsonProperty("content_source_url")
                private String contentSourceUrl;
                @JsonProperty("thumb_media_id")
                private String thumbMediaId;
                @JsonProperty("show_cover_pic")
                private Integer showCoverPic;
                @JsonProperty("url")
                private String url;
                @JsonProperty("thumb_url")
                private String thumbUrl;
                @JsonProperty("need_open_comment")
                private Integer needOpenComment;
                @JsonProperty("only_fans_can_comment")
                private Integer onlyFansCanComment;
                @JsonProperty("article_type")
                private String articleType;

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getAuthor() {
                    return author;
                }

                public void setAuthor(String author) {
                    this.author = author;
                }

                public String getDigest() {
                    return digest;
                }

                public void setDigest(String digest) {
                    this.digest = digest;
                }

                public String getContent() {
                    return content;
                }

                public void setContent(String content) {
                    this.content = content;
                }

                public String getContentSourceUrl() {
                    return contentSourceUrl;
                }

                public void setContentSourceUrl(String contentSourceUrl) {
                    this.contentSourceUrl = contentSourceUrl;
                }

                public String getThumbMediaId() {
                    return thumbMediaId;
                }

                public void setThumbMediaId(String thumbMediaId) {
                    this.thumbMediaId = thumbMediaId;
                }

                public Integer getShowCoverPic() {
                    return showCoverPic;
                }

                public void setShowCoverPic(Integer showCoverPic) {
                    this.showCoverPic = showCoverPic;
                }

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }

                public String getThumbUrl() {
                    return thumbUrl;
                }

                public void setThumbUrl(String thumbUrl) {
                    this.thumbUrl = thumbUrl;
                }

                public Integer getNeedOpenComment() {
                    return needOpenComment;
                }

                public void setNeedOpenComment(Integer needOpenComment) {
                    this.needOpenComment = needOpenComment;
                }

                public Integer getOnlyFansCanComment() {
                    return onlyFansCanComment;
                }

                public void setOnlyFansCanComment(Integer onlyFansCanComment) {
                    this.onlyFansCanComment = onlyFansCanComment;
                }

                public String getArticleType() {
                    return articleType;
                }

                public void setArticleType(String articleType) {
                    this.articleType = articleType;
                }
            }
        }
    }
}
